package com.ouc.dataMange.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ouc.dataMange.mapper.SysDataShipMapper;
import com.ouc.dataMange.domain.SysDataShip;
import com.ouc.dataMange.service.ISysDataShipService;

/**
 * sys_data_shipService业务层处理
 * 
 * @author ouc
 * @date 2025-08-04
 */
@Service
public class SysDataShipServiceImpl implements ISysDataShipService 
{
    @Autowired
    private SysDataShipMapper sysDataShipMapper;

    /**
     * 查询sys_data_ship
     * 
     * @param id sys_data_ship主键
     * @return sys_data_ship
     */
    @Override
    public SysDataShip selectSysDataShipById(Integer id)
    {
        return sysDataShipMapper.selectSysDataShipById(id);
    }

    /**
     * 查询sys_data_ship列表
     * 
     * @param sysDataShip sys_data_ship
     * @return sys_data_ship
     */
    @Override
    public List<SysDataShip> selectSysDataShipList(SysDataShip sysDataShip)
    {
        return sysDataShipMapper.selectSysDataShipList(sysDataShip);
    }

    /**
     * 新增sys_data_ship
     * 
     * @param sysDataShip sys_data_ship
     * @return 结果
     */
    @Override
    public int insertSysDataShip(SysDataShip sysDataShip)
    {
        return sysDataShipMapper.insertSysDataShip(sysDataShip);
    }

    /**
     * 修改sys_data_ship
     * 
     * @param sysDataShip sys_data_ship
     * @return 结果
     */
    @Override
    public int updateSysDataShip(SysDataShip sysDataShip)
    {
        return sysDataShipMapper.updateSysDataShip(sysDataShip);
    }

    /**
     * 批量删除sys_data_ship
     * 
     * @param ids 需要删除的sys_data_ship主键
     * @return 结果
     */
    @Override
    public int deleteSysDataShipByIds(Integer[] ids)
    {
        return sysDataShipMapper.deleteSysDataShipByIds(ids);
    }

    /**
     * 删除sys_data_ship信息
     * 
     * @param id sys_data_ship主键
     * @return 结果
     */
    @Override
    public int deleteSysDataShipById(Integer id)
    {
        return sysDataShipMapper.deleteSysDataShipById(id);
    }
}
